package com.myjava.managesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myjava.managesystem.dto.DishDto;
import com.myjava.managesystem.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService extends IService<Dish> {

    @Transactional
    public void saveWithFlavor(DishDto dishDto);

    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

    void updateStatusWithSetmeal(int st, List<Long> ids);

    void deleteWithSetmeal(List<Long> ids);
}
